package org.example.configs;

import org.example.filters.HelloFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 */

@Configuration
public class ServletConfig {
    @Bean
    public FilterRegistrationBean heFilterRegistration() {
        FilterRegistrationBean registration = new FilterRegistrationBean(new HelloFilter());
        registration.addUrlPatterns("/*");
        return registration;
    }
}
